package com.openbravo.bean.sales;

import java.util.HashMap;

public class KitchenWorkLine extends KitchenLineInfo{
	/**
	 * 
	 */
	private static final long serialVersionUID = 6565337517897786349L;
	protected String hostName;
    protected int order;
    protected HashMap<String, String> attributes;
    
    
	public String getHostName() {
		return hostName;
	}
	public void setHostName(String hostName) {
		this.hostName = hostName;
	}
	public int getOrder() {
		return order;
	}
	public void setOrder(int order) {
		this.order = order;
	}
	
	public HashMap<String, String> getAttributes() {
		return attributes;
	}
	public void setAttributes(HashMap<String, String> attributes) {
		this.attributes = attributes;
	}
	
	
	public String getProductName() {
		return attributes.get("product.name");
	}

	public String getProductAttSetId() {
		return attributes.get("product.attsetid");
	}

	public String getProductAttSetInstDesc() {
		return getProperty("product.attsetdesc", "");
	}
	
	public String getProperty(String key) {
		return attributes.get(key);
	}

	public String getProperty(String key, String defaultvalue) {
		String ret = attributes.get(key);
		return ret != null ? ret : defaultvalue;
	}
    
    
}
